
#ifndef _DMA_H_
#define _DMA_H_

#include "hc32f4xx_conf.h"
#include "hc32_ll_dma.h"


void Dma1Init(void);
void Dma2Init(void);
 
void dmaUart1SendData(uint8_t *data, uint8_t len);
void dmaUart3SendData(uint8_t *data, uint16_t len);
uint16_t getUart1RemainRecvBuf(void);
uint16_t getUart3RemainRecvBuf(void);


extern const uint8_t * const g_uart1rx;
extern const uint8_t * const g_uart3rx ;
void dma3senddatatransplant(uint8_t *data, uint16_t len);
void dma1senddatatransplant(uint8_t *data, uint16_t len);
#endif
